/*
 * Copyright (C) 2010-2012 Enrique Lara (enrique.posix2.lara@gmail.com)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package app.transitalarm.provider;

import android.provider.BaseColumns;

import app.transitalarm.provider.Tables.Alarms;

public final class Projections {
    public static class AlarmsBrief {
        public static final String[] PROJECTION = new String[] {
                                                                   BaseColumns._ID, // 0
                                                                                    /* Timing */
        Alarms.ENABLED,
                                                                   Alarms.HOUR,
                                                                   Alarms.MINUTE,
                                                                   Alarms.DAYS_IN_WEEK,
                                                                   /* Criteria */
        Alarms.AGENCY_ID,
                                                                   Alarms.STOP,
                                                                   /* Representation */
        Alarms.LABEL,
                                                                   Alarms.IMAGE,
        };

        /* Timing */
        public static final int ENABLED = 1;
        public static final int HOUR = 2;
        public static final int MINUTE = 3;
        public static final int DAYS_IN_WEEK = 4;

        /* Criteria */
        public static final int AGENCY_ID = 5;
        public static final int STOP = 6;

        /* Representation */
        public static final int LABEL = 7;
        public static final int IMAGE = 8;
    }

    public static class AlarmsAll {
        public static final String[] PROJECTION = new String[] {
                                                                   BaseColumns._ID, // 0
                                                                                    /* Timing */
        Alarms.ENABLED,
                                                                   Alarms.HOUR,
                                                                   Alarms.MINUTE,
                                                                   Alarms.DAYS_IN_WEEK,
                                                                   /* Criteria */
        Alarms.AGENCY_ID,
                                                                   Alarms.STOP,
                                                                   Alarms.ROUTE,
                                                                   Alarms.DIRECTION,
                                                                   Alarms.TIME_MAX,
                                                                   Alarms.TIME_MIN,
                                                                   /* Representation */
        Alarms.LABEL,
                                                                   Alarms.RINGTONE,
                                                                   Alarms.VIBRATE,
                                                                   Alarms.IMAGE,
        };

        /* Timing */
        public static final int ENABLED = 1;
        public static final int HOUR = 2;
        public static final int MINUTE = 3;
        public static final int DAYS_IN_WEEK = 4;

        /* Criteria */
        public static final int AGENCY_ID = 5;
        public static final int STOP = 6;
        public static final int ROUTE = 7;
        public static final int DIRECTION = 8;
        public static final int TIME_MAX = 9;
        public static final int TIME_MIN = 10;

        /* Representation */
        public static final int LABEL = 11;
        public static final int RINGTONE = 12;
        public static final int VIBRATE = 13;
        public static final int IMAGE = 14;
    }
}
